<?php
pathnode::heritage('textfilenode',10);
/**
*
* @author J.Ducastel <jducastel@jducastel.fr>
* @version 
*/
class textFileNode extends fileNode {
/*------------------------------------------------------------------------------
                                                                     constructor
------------------------------------------------------------------------------*/
    /**
    *
    * @access
    * /
    function () {
        
    }/**/
/*------------------------------------------------------------------------------
                                                                  public methods
------------------------------------------------------------------------------*/
    /**
    * 
    * @param
    * @access public
    * @return 
    * /
    function () {
        
    }/**/
    
    /**
    * returns appropriate newline char(s) as a string
    * @param
    * @access protected
    * @return 
    */
    function newlineString($newline=NULL) {
        if ($newline) $this->newline=$newline;
        return $this->newline;
    }/**/
/*------------------------------------------------------------------------------
                                                                      properties
------------------------------------------------------------------------------*/
    /**
    * @var type desc
    */
    //var $type='textfile';
    // var $content_text='';
    var $newline="\n";
    //var $encoding='utf-8';
    // var $mode='unix';
/*------------------------------------------------------------------------------
                                                               protected methods
------------------------------------------------------------------------------*/
    /**
    * detects if path applies to self class.
    * subclasses HAVE to implement this method
    * @param
    * @access protected
    * @return bool
    */
    function selfDetector($path) {
        return ereg('\.txt$',$path);
    }/**/
    
    /**
    * 
    * @param
    * @access protected
    * @return 
    * /
    function () {
        
    }/**/
/*------------------------------------------------------------------------------
                                                                 private methods
------------------------------------------------------------------------------*/
    /**
    * 
    * @param
    * @access private
    * @return 
    * /
    function () {
        
    }/**/
    
    /**
    * 
    * @param
    * @access private
    * @return 
    * /
    function () {
        
    }/**/
}
?>
